import React from 'react'
import { UserModel } from '../../service/userService';
import { useAppSelector } from '../../store';

const User = () => {
  const users = useAppSelector(state=>state.user.users)
  return (
    <div>
        <ul>
          {
            users.map((item:UserModel,index:number)=><li key = {index}>{item.id}-{item.name}</li>)
          }
        </ul>
    </div>
  )
}

export default User;